function insertAfter(newElement,targetElement){
    let parent = targetElement.parentNode
    if(parent.lastChild == targetElement){
        parent.appendChild(newElement)
    }else{
        parent.insertBefore(newElement,targetElement.nextSibling)   //插入到目标节点的下一个兄弟节点之前
    }
}